<?php
class Application_Model_DbTable_logisticslogItem extends Application_Model_DbTable_DomainObject{
	
	protected $_name = 'uuch_logisticslog';
	
	public function getMapper(){
		return array('id','logisticsNo','opDate','opRemark','opState','opUser','wayId');
	}
        
        /*
         * 根据用户序号获取信息
         */
        public  function getByCode($no){
            
            $db = $this->getAdapter();
            $filter = $db->quoteInto('logisticsNo = ?', $no);    
            $rows = $this->fetchAll($filter,'id');
            
            $result = array();
            foreach ($rows as $row)
                    array_push($result,$this->convertRowToObject($row));
            return $result;
        }
}